﻿using System;

namespace YArchitech.HCLoad.XmlData
{
	public class Floor
	{
		public Floor(FloorCollect floorCollect)
		{
			this.parent = floorCollect;
		}

		public FloorCollect Parent
		{
			get
			{
				return this.parent;
			}
			set
			{
				this.parent = value;
			}
		}

		public int FloorClass
		{
			get
			{
				return this.nFloorClass;
			}
			set
			{
				this.nFloorClass = value;
			}
		}

		public int ID
		{
			get
			{
				return this.nID;
			}
			set
			{
				this.nID = value;
			}
		}

		public int FloorNum
		{
			get
			{
				return this.nFloorNum;
			}
			set
			{
				this.nFloorNum = value;
			}
		}

		public string Description
		{
			get
			{
				return this.sDescription;
			}
			set
			{
				this.sDescription = value;
			}
		}

		public string Name
		{
			get
			{
				return this.sName;
			}
			set
			{
				this.sName = value;
			}
		}

		public string GuidString
		{
			get
			{
				return this.sGuidString;
			}
			set
			{
				this.sGuidString = value;
			}
		}

		public double[] ZsLfhXr
		{
			get
			{
				return this.adZsLfhXr;
			}
			set
			{
				this.adZsLfhXr = value;
			}
		}

		public double[] ZsLfhQr
		{
			get
			{
				return this.adZsLfhQr;
			}
			set
			{
				this.adZsLfhQr = value;
			}
		}

		public double DjRfhXr
		{
			get
			{
				return this.dDjRfhXr;
			}
			set
			{
				this.dDjRfhXr = value;
			}
		}

		public double DjRfhQr
		{
			get
			{
				return this.dDjRfhQr;
			}
			set
			{
				this.dDjRfhQr = value;
			}
		}

		public double DjSfh
		{
			get
			{
				return this.dDjSfh;
			}
			set
			{
				this.dDjSfh = value;
			}
		}

		public double FloorHeight
		{
			get
			{
				return this.dFloorHeight;
			}
			set
			{
				this.dFloorHeight = value;
			}
		}

		public double WindowHeight
		{
			get
			{
				return this.dWindowHeight;
			}
			set
			{
				this.dWindowHeight = value;
			}
		}

		public RoomCollect RoomCollect
		{
			get
			{
				return this.roomCollect;
			}
		}

		public void AddRoomCollect()
		{
			try
			{
				this.roomCollect = new RoomCollect(this);
			}
			catch (Exception ex)
			{
				throw new Exception(ex.ToString());
			}
		}

		private FloorCollect parent;

		private int nFloorClass;

		private int nID;

		private int nFloorNum;

		private string sDescription;

		private string sName;

		private string sGuidString;

		private double[] adZsLfhXr;

		private double[] adZsLfhQr;

		private double dDjRfhXr;

		private double dDjRfhQr;

		private double dDjSfh;

		private double dFloorHeight;

		private double dWindowHeight;

		private RoomCollect roomCollect;
	}
}
